#ifndef _XDATAUDPDCONF_H
#define _XDATAUDPDCONF_H

#include <iostream>
#include <cstring>
#include <xinifile.h>

typedef struct ST_UDPD_CONF
{
	std::string ip;
	std::string gateway;
	int  		port;
	int  		timeout;
	std::string protocol;
	std::string mac;
}STUdpdConf;

class XDataUdpdConf 
{
public:
	XDataUdpdConf ();
	~XDataUdpdConf();

	const STUdpdConf& getUdpdConf(void) const;
	std::string getIp(void) const;
	int getPort(void) const;

protected:
	void clearStUdpdConf(void);
	void debugOutput();
private:
	XIniFile   m_iniFile;
	STUdpdConf m_udpdConf;
};
#endif
